<!-- 老旧小区改造-->
<template>
  <div class="page-box">
    <div class="flex-left">
      <ShuJuTongJi />
      <ZuiXinAnJian
        :scrollData="scrollData"
        :servers="2"
      />
    </div>
    <div class="flex-right">
      <JieBanAnjianXiangQing></JieBanAnjianXiangQing>
      <AnJianShuLiangPaiMing></AnJianShuLiangPaiMing>
    </div>
  </div>
</template>

<script>
import ShuJuTongJi from './components/ShuJuTongJi.vue'
import ZuiXinAnJian from '@/components/ZuiXinAnJian/ZuiXinAnJian.vue'
import AnJianShuLiangPaiMing from './components/AnJianShuLiangPaiMing.vue'
import JieBanAnjianXiangQing from './components/JieBanAnjianXiangQing.vue'
import { ZhiHuiGongDiDB } from '@/api'
export default {
  components: {
    ShuJuTongJi,
    ZuiXinAnJian,
    AnJianShuLiangPaiMing,
    JieBanAnjianXiangQing
  },
  data() {
    return {
      scrollData: []
    }
  },
  mounted() {
    this.getData()
  },
  methods: {
    getData() {
      // servers  1-智慧工地  2-老旧小区
      ZhiHuiGongDiDB.getZuiXinAnJian().then(res => {
        this.scrollData = res.data
      })
    }
  }
}
</script>

<style lang="less" scoped></style>
